#pragma once

struct request {
    int dev; /* -1 if no request */
    int cmd; /* READ or WRITE */
    unsigned long sector;
    unsigned long nr_sectors;
    char *buffer;
};

#define DEVICE_INTR    do_hd
#define DEVICE_REQUEST do_hd_request

#ifdef DEVICE_INTR
void (*DEVICE_INTR)(void) = NULL;
#endif
static void(DEVICE_REQUEST)(void);
